package net.hn.hnms.biz.api.mine;

import net.hn.hnms.biz.api.mine.model.*;
import net.hn.hnms.biz.api.mine.model.dto.MineCodeMapDto;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.biz.api.mine.model.*;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: PanSX
 * Date: 2022/8/10 17:29
 */
@Component
public class RemoteMineInfoServiceFallback implements RemoteMineInfoService {
    @Override
    public R<MineVo> getMineInfo(String mineCode) {
        return R.fail("煤矿基础信息获取失败");
    }

    @Override
    public R<SysModelVo> getSysModel(String sysName) {
        return R.fail(sysName + "系统型号获取失败");
    }

    @Override
    public R<GasIndicatorVo> gasIndicator(String mineCode) {
        return R.fail("煤矿瓦斯评分信息获取失败");
    }

    @Override
    public R<DustIndicatorVo> dustIndicator(String mineCode) {
        return R.fail("煤矿粉尘评分信息获取失败");
    }

    @Override
    public R<MineVo> sendBaseMessage(WeChartBaseMessage msg) {
        return R.fail("消息发送失败");
    }

    @Override
    public List<MineCodeMapDto> getMineCodeMapList(String mineCode) {
        return new ArrayList<>();
    }

}
